import type { App, Component } from "vue";
const modules = import.meta.glob("./modules/*.vue", { eager: true, import: 'default' });
export default {
        install: (app:App) => {
          Object.keys(modules).forEach((key) => {
            const defaultModule = modules[key] as Component;
            if (!defaultModule || !defaultModule.name) return;
            app.component(defaultModule.name,defaultModule)
          });
        }
    };

